package cn.itsource.wechat.service.impl;

import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.wechat.domain.WxUser;
import cn.itsource.wechat.mapper.WxUserMapper;
import cn.itsource.wechat.query.WxUserQuery;
import cn.itsource.wechat.service.IWxUserChatService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Slf4j
public class WxUserServiceImpl extends BaseServiceImpl<WxUser, WxUserQuery> implements IWxUserChatService {
    //基础查询由继承得到

    @Resource
    private WxUserMapper wxUserMapper;


    @Override
    public WxUser findByOpenId(String openid) {
        return wxUserMapper.findByOpenId(openid);
    }
}
